<?php
use yii\bootstrap5\Html;

/** @var yii\web\View $this */
/** @var app\models\IssueSearch $searchModel */
/** @var yii\data\ActiveDataProvider $dataProvider */

$project = $searchModel->project;

$this->title = Yii::t('app', 'Issue');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Project'), 'url' => ['project/index']];
$this->params['breadcrumbs'][] = ['label' => $project->name, 'url' => ['project/view', 'id' => $project->id]];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="issue-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a(Yii::t('app', 'Create'), ['create-for-project', 'projectId' => $project->id], ['class' => 'btn btn-success']) ?>
    </p>

    <?php echo $this->render('/issue/_search', ['model' => $searchModel]); ?>

    <?= $this->render('/issue/_index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]) ?>


</div>
